package com.yfbao.horizon.schedule.tk.utils;

import cn.hutool.core.io.FileUtil;
import lombok.extern.slf4j.Slf4j;

import java.util.List;

@Slf4j
public class DenyWord {
    public static void main(String[] args) {
        test();
    }

    private static void test(){
        long start = System.currentTimeMillis();
        List<String> stringList = FileUtil.readLines("dict_20231117.txt", "utf-8");
        log.info("src black size:"+stringList.size());
        List<String> stringList2 = FileUtil.readLines("dict_1W.txt", "utf-8");
        log.info("src white size:"+stringList2.size());
        stringList.removeAll(stringList2);
        log.info("src total size:"+stringList.size());

        log.info("cost time:"+(System.currentTimeMillis()-start)+"ms");
    }

}
